package com.hawthorn.admin.service.sysrole;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 系统角色interface</p>
 * @author: andy.ten@tom.com | xukaixing@hotmail.com
 * @created: 2022/7/29 10:27
 * @version v1.0.1
 * @copyright: Copyright (c)  andyten
 */
public interface SysRoleService
{
  IPage<Map<String, Object>> findRoles(Page<Map<String, Object>> page, String qc);

  IPage<Map<String, Object>> findDealerRoles(Page<Map<String, Object>> page, String qc);

  Map<String, Object> saveRole(Map<String, Object> param);

  Map<String, Object> saveDealerRole(Map<String, Object> param);

  Map<String, Object> updateRole(Long id, Map<String, Object> param);

  Map<String, Object> updateDealerRole(Long id, Map<String, Object> param);

  Map<String, Object> updateRoleStatus(Long id, Integer status);

  void saveAuthGrantMenus(List<Map<String, Object>> params);

  List<Map<String, Object>> searchAuthGrantMenus(Long roleId);
}
